package com.dc.designPattern._0_设计原则._5_isp.step2;

/**
 * Description: C_D 类，依赖接口Interface1,Interface3，其需要的所有方法都在D中完成了实现
 * @author: gdc
 * @date: 2021/7/23
 * @version 1.0
 */
class C_D {

    public void depend1(Interface1 i) {
        i.operation1();
    }

    public void depend4(Interface3 i) {
        i.operation4();
    }

    public void depend5(Interface3 i) {
        i.operation5();
    }
}